package tw.asap.plus.common;

public class ConstValue {

    public static final int SUCCESS_RESULT = 0;
    public static final int FAILURE_RESULT = 1;

    public static final String PACKAGE_NAME =
            "tw.asap.plus";
    public static final String RECEIVER = PACKAGE_NAME + ".RECEIVER";
    public static final String RESULT_DATA_KEY = PACKAGE_NAME +
            ".RESULT_DATA_KEY";
    public static final String LOCATION_DATA_EXTRA = PACKAGE_NAME +
            ".LOCATION_DATA_EXTRA";
    public static final String LOCATION_ADDRESS_EXTRA = PACKAGE_NAME+
            ".ADDRESS";


    public final static boolean IS_UNIT_TESTING = true;

    public final static int TIMEOUT = 20;

    public static String cookie = "";

    //    public static final String SERVER_URL = "https://0.openapi2.qfpay.com";// 线上服务器地址
//    public static final String SERVER_URL = "http://1.wx.qfpay.com";//测试地址

    public static final String ONLINE_DOMAIN_URL = "http://wx.qfpay.com";

    public static boolean ONLINE_DOMAIN_TEST_URL = false;

    public static final String OFFLINE_DOMAIN_URL = "http://1.wx.qfpay.com";

    public static boolean OFFLINE_DOMAIN_TEST_URL = false;

    public static final String TEST_URL = "http://listdetail.com";

    public static String SERVER_URL = "http://listdetail.com";//测试地址

    /**
     * 请求响应码
     */
    public static final Object RESPCD = "0000";

    public static final String API_PREIX = "https://0.openapi2.qfpay.com/";// 线上

    /**
     * 登录API
     */
    public static final String LOGIN_API_URL = API_PREIX + "merchant/v1/login";

    /**
     * 注销登录
     */
    public static final String LOGOUT_API_URL = API_PREIX + "merchant/v1/logout";

    /**
     * 获取商户信息API
     */
    public static final String PROFILE_API_URL = API_PREIX + "merchant/v1/profile";

    /**
     * 主页URL
     */
    public static final String DOMAIN = "http://wx.qfpay.com/";// 线上服务器地址

    public static final String H5_MAIN_WEBURL = DOMAIN + "near/";

    public static final String H5_ENVIROMENT_SWITCH_URL = H5_MAIN_WEBURL + "/near-env.html";

    public static final String BIND_CLIENT_URL = DOMAIN + "qmm/wd/app/near/android_bind";


    public static class Sp {
        public static final String NAME = "shared";

        /**
         * 用户Id
         */
        public static final String USER_ID = "userId";
        /**
         * 用户名
         */
        public static final String USERNAME = "username";

        /**
         * 密码
         */
        public static final String PASSWORD = "password";

        /**
         * 浏览器Cookie
         */
        public static final String COOKIE = "cookie";

        /**
         * 登录返回Sessionid
         */
        public static final String SESSIONID = "sessionid";
        /**
         * 加密密码
         */
        public static final String ENCRPT = "encrpt";
        /**
         * 记住密码复选框
         */
        public static final String REMENBER_PASS_CHECKED = "remenber_pass_checked";

        /**
         * 线上线下环境
         */
        public static final String OFFLINE_DEV = "offline_dev";



        public static final String APP_ID ="app_id" ;
        public static final String APP_VERSION ="app_version" ;
        public static final String IMEI_NO ="imei_no" ;
        public static final String SYSTEM_VERSION ="system_version" ;
        public static final String PUSH_ID ="push_id" ;
        public static final String CHANNEL ="channel" ;
        public static final String USER_TOKEN = "token";
        public static final String LAT = "latitude";
        public static final String LNG = "longitude";
        public static final String KEY_WORDS = "key_words";
    }

    /**
     * 网络问题无法访问
     */
    public static final String INTERNET_ERROR = "当前无法访问网络，请检查网络设置！";

    /**
     * 接口访问异常
     */
    public static final String CONVERSION_ERROR = "数据开小差了，再刷新试试看！";

    /**
     * 后台服务有问题
     */
    public static final String SERVER_ERROR = "有点小问题，不要着急，程序员哥哥正在抢修！";


    /*
    0000 # 成功
    2002 # 无效的 cors_token
    2100 # 身份认证失败
    2101 # 参数错误
    2200 # 非法请求或请求次数受限
    2201 # IP受限
    2400 # 未知错误
    */

    public static final String QINIU_FUNC = "near-merchant";
    public static final String QiNiuServerUrl = "http://mmwd-client.m1img.com/";

    public static final String PIC_SIZE_SMALL = "_140";
    public static final String PIC_SIZE_MIDDLE = "_320";
    public static final String PIC_SIZE_BIG = "_640";


}
